package com.base.model;

/**
 * Created by yjh on 15-3-13.
 */
public class BackgroundResource {
    private int viewid;
    private int drawable;
    private int type; //0 background; 1 imageView src
    private String imgId;
    private boolean needLoading;

    public BackgroundResource(int viewid, int drawable, int type) {
        this.viewid = viewid;
        this.drawable = drawable;
        this.type = type;
    }

    public BackgroundResource(int viewid, int drawable, int type, String imgId, boolean needLoading) {
        this.viewid = viewid;
        this.drawable = drawable;
        this.type = type;
        this.imgId = imgId;
        this.needLoading = needLoading;
    }

    public int getViewid() {
        return viewid;
    }

    public void setViewid(int viewid) {
        this.viewid = viewid;
    }

    public int getDrawable() {
        return drawable;
    }

    public void setDrawable(int drawable) {
        this.drawable = drawable;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    public boolean isNeedLoading() {
        return needLoading;
    }

    public void setNeedLoading(boolean needLoading) {
        this.needLoading = needLoading;
    }
}
